select

abstract fun JsonElement.select(path: ClaimPath): Result<JsonElement?>(source)

Matches the given path to the JsonElement

Receiver

the JSON to match against

Return

a JsonElement if present. In case the structure of the given this@select doesn't comply with the path a Result.Failure is being returned

Parameters

path

the path to match